-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixing deprecation warnings for 2025.1 #74
base: main
Are you sure you want to change the base?
Conversation
@@ -1,6 +1,6 @@ | |||
{ | |||
"name": "ludeeus/integration_blueprint", | |||
"image": "mcr.microsoft.com/vscode/devcontainers/python:0-3.11-bullseye", | |||
"image": "mcr.microsoft.com/vscode/devcontainers/python:3.12-bullseye", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The 2024.5.3 was complaining it needed python 3.12
@@ -15,7 +15,7 @@ jobs: | |||
runs-on: ubuntu-latest | |||
strategy: | |||
matrix: | |||
python-version: ["3.11"] | |||
python-version: ["3.12"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't know if this is required
# Assume Python 3.12 | ||
target-version = "py312" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't know if this is required
Hi @IngoS11, |
Hi there, trying to fix warnings prior to release of 2025.1
First off, i'm not familiar with Python and all its ecosystem, i've been programming mainly in java for the last 25 years, so if you want me to change anything, just let me know.
These are the warnings i'm getting when booting a recent 2024 build of HASS:
I've changed the constants as suggested for the first four items.
For the last one, i've found this blog post explaining what needed to be done. Looking at the code for the turn_on and turn_off show indeed that it will work.